<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title>北大青鸟办公自动化管理系统</title>
    <link href="../css/style.css" rel="stylesheet" type="text/css"/>
</head>

<body>

<div class="top">
    <div class="global-width">
        <img src="../Images/logo.gif" class="logo"/>
    </div>
</div>
<div class="status">
    <div class="global-width">
        <span class="usertype">【登录角色：${EMP.sysPosition.nameCn}】</span>${EMP.name}你好！,您的上级是：${EMP.sysDepartment.sysEmployee.name}
        ！ 欢迎访问青鸟办公管理系统！
        <a href="empAction!logout.action">注销</a>
    </div>
</div>
<div class="main">
    <div class="global-width">


        <%@include file="../menu.jsp" %>

        <form id="myForm" name="myForm" method="post">
            <div class="action">
                <div class="t">待审报销单列表</div>
                <div class="pages">
                    <!--报销单列表 区域 开始-->
                    <table width="90%" border="0" cellspacing="0" cellpadding="0" class="list">
                        <tr>
                            <td>编号</td>
                            <td>填报日期</td>
                            <td>填报人</td>
                            <td>总金额</td>
                            <td>状态</td>
                            <td>操作</td>
                        </tr>
                        <c:choose>
                            <c:when test="${sessionScope.pageBean.list == null || fn:length(sessionScope.pageBean.list) == 0}">
                                <tr>
                                    <td>
                                        没有报销单记录
                                    </td>
                                </tr>
                            </c:when>
                            <c:otherwise>
                                <c:forEach items="${sessionScope.pageBean.list}" var="l">
                                    <tr>
                                        <td>${l.id}
                                        </td>
                                        <td>${l.createTime}
                                        </td>
                                        <td>${l.sysEmployeeByCreateSn.name}
                                        </td>
                                        <td>￥${l.totalAccount}
                                        </td>
                                        <td>${l.sysDictionary.value}
                                        </td>
                                        <td>
                                            <a href="checkResultAction_checkView.action?bizClaimVoucher.id=${l.id}"><img
                                                    src="/Images/search.gif"
                                                    width="16" height="16"
                                                    title="查看"/></a>
                                            <a href="#"><img
                                                    src="/Images/sub.gif"
                                                    width="16" height="16"
                                                    title="审批"/></a>

                                        </td>
                                    </tr>
                                </c:forEach>
                            </c:otherwise>
                        </c:choose>
                        <!--分页标签开始 -->
                        <tr>
                            <td style="text-align: right" colspan="7">
                                <a href="claimAction_list.action?pageIndex=1">首页</a>
                                <a href="claimAction_list.action?pageIndex=${sessionScope.pageBean.pageIndex-1}">上一页</a>
                                <a href="claimAction_list.action?pageIndex=${sessionScope.pageBean.pageIndex+1}">下一页</a>
                                <a href="claimAction_list.action?pageIndex=${sessionScope.pageBean.totalPage}">尾页</a>&nbsp;
                                总页数/当前页
                                [${sessionScope.pageBean.pageIndex}/${sessionScope.pageBean.totalPage}]
                            </td>
                        </tr>
                        <!--分页标签结束 -->
                    </table>
                </div>
            </div>
        </form>
    </div>
</div>


<div class="copyright">
    Copyright &nbsp; &copy; &nbsp; 北大青鸟
</div>
</body>

</html>

